#define __UART_H__
#define __UART_H__

/*************************************************************************************///External Function
extern void UART1_Init(void);
extern void UART2_Init(void);
extern void put_char(unsigned char c);
extern void put_string(unsigned char *str);
#ifndef __U_A_R_T_H_
#define __U_A_R_T_H_
#include "FU68xx_4.h"

typedef struct
{
	uint16 fixedvalue;
	uint16 R_DATA[10];//={0,0,0,0,0,0,0,0,0,0};
	uint16 T_DATA[10];//={0,0,0,0,0,0,0,0,0,0};
	uint16 Uredata;
	uint16 UARxCnt;
 
    uint16 SpeedRef;
	uint8 ResponceFlag;
	uint8 UsaTxlen;
	uint8 SendCnt;
} MCUART;

extern MCUART xdata Uart;
extern void UART_Init(void);
extern void UART_SendData(unsigned char T_Data);
extern void UartDealResponse(void);
extern void UartDealComm(void);
extern void Hardwarenit(void);
extern void UartSendIsr(void);
extern void UartRecIsr(void);
 
#endif
